package cn.tedu.shoot;
import java.awt.image.BufferedImage;
public class BossBullet extends FlyingObject{
	private int yspeed;
	private int xspeed;
	public BossBullet(int x, int y) {
		super(30,30,x,y);
		yspeed=2;
		
	}
	
	public void step() {
		y+=yspeed;
		x+=xspeed;
		if(x>=400-this.width||x<=0) {
			xspeed*=-1;
			
		}
		
	}
	public void xset(int a) {
		xspeed=a;
	}
	public void yset(int a) {
		yspeed=a;
	}

	
	public BufferedImage getImage() {
		if(isLife()) {
			return Images.bossbullet;
		}else if(isDead()) {
			state=REMOVE;
		}
		return null;
	}
	

}
